import { MockMethod } from 'vite-plugin-mock';
import { resultSuccess, resultPageSuccess } from '../_util';
const demoList = (() => {
  const result: any = [];
  for (let index = 0; index < 30; index++) {
    result.push({
      id: `${index}`,
      code: '@string(lower,10)',
      createTime: '@datetime',
      notes: '@csentence(8,15)',
    });
  }
  return result;
})();
enum Api {
  list = '/assetcodemanage/assetCodeManage/list',
  save = '/assetcodemanage/assetCodeManage/add',
  edit = '/assetcodemanage/assetCodeManage/edit',
  deleteOne = '/assetcodemanage/assetCodeManage/delete',
  deleteBatch = '/assetcodemanage/assetCodeManage/deleteBatch',
  importExcel = '/assetcodemanage/assetCodeManage/importExcel',
  exportXls = '/assetcodemanage/assetCodeManage/exportXls',
}
const prefix = '/jeecgboot';
export default [
  // {
  //   url: prefix + Api.list,
  //   timeout: 1000,
  //   method: 'get',
  //   response: ({ query }) => {
  //     const { page = 1, pageSize = 20 } = query;
  //     return resultPageSuccess(page, pageSize, demoList);
  //   },
  // },
] as MockMethod[];
